package com.vaadin.thomas.contenttool.data;

import java.util.Date;
import java.util.Locale;

public interface Localization extends Comparable<Localization>{

	public abstract String getValue();

	/**
	 * Changes the start date for this {@link Localization}, IF it already has
	 * one.
	 * <p>
	 * Start dates cannot be set for Localizations without one, as that will
	 * create a situation where a Localization has no value for a specific time.
	 * 
	 * @param date
	 *            The new starting date. Can be of any resolution, but
	 *            {@link Date} matching is done to the minute level.
	 */
	public abstract void setStartDate(Date date);

	public abstract Date getStartDate();

	public abstract void setLanguage(Locale l);

	public abstract Locale getLanguage();

}